<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#">{:lang('订单列表')}</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="get" action="{:url('index')}">
        筛选：
        <select class="form-control" name="order_status">
            <option value="">全部</option>
            {$status_option}
        </select>
        关键字:
        <input type="text" class="form-control" name="keywords"
               value="{:input('request.keywords','')}" placeholder="订单号、用户名或邮箱">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('index')}">清空</a>
    </form>
    <style>tr th {
        text-align: center
    }</style>
    <table class="table table-hover table-bordered text-center">
        <thead>
        <tr>
            <th>{:lang('订单号')}</th>
            <th>{:lang('用户名')}</th>
            <th>{:lang('收货地址')}</th>
            <th>{:lang('下单时间')}</th>
            <th>{:lang('支付金额（元）')}</th>
            <th>{:lang('订单状态')}</th>
            <th>{:lang('ACTIONS')}</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="datas" item="data">
            <tr>
                <td>{$data.goods_order_no}</td>
                <td>{$data.user_login}</td>
                <td>{$data.address}</td>
                <td>{$data.ordertime|date='Y-m-d H:i:s'}</td>
                <td>{$data.money}</td>
                <td><?php echo config('config.order_status')[$data['status']]; ?></td>
                <td>
                    <a href="{:url('seeOrder',array('id'=>$data['id']))}" class="btn btn-info">操作</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$datas->render()}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>